package
{
import com.societyGames.codeExercise.CodeExercise;
import com.societyGames.robotExercises.RobotCodeExercise;
import com.societyGames.robotExercises.RobotSimulation;

import flash.geom.Point;

public function moveTo(x:int, y:int):void
{
  var robotSimulation:RobotSimulation = RobotCodeExercise(CodeExercise.instance).simulation;
  var robotPosition:Point = robotSimulation.robotPosition;
  robotSimulation.move(x - robotPosition.x, y - robotPosition.y);
}
}
